from random import randint
N = int(input())
s = 0
for i in range(0,N):
    x = randint (-100,100)
    y = randint (-100,100)
    if x>=-7 and x<=5 and y <=5 and y>=-7:
     s= s+1
print(s)
